#include "syscall.h"
int sum = 0;
void t1()
{
	int i;
	WriteFormat("Forked thread running \n",24,0,0);
	Yield();
	for(i=0;i<1000;i++)/*do something*/
	{
		sum+=i;
	}
	WriteFormat("Forked thread will Exit \n",26,0,0);
	Exit(0);
}

int main()
{	
	WriteFormat("Main thread running testPart2_2 \n",34,0,0);
	WriteFormat("Main thread Forked a new Thread \n",34,0,0);
	Fork(t1);
	WriteFormat("Main thread will exit \n",24,0,0);
	Exit(0);
}
